<style tyle="text/css">
  .redWord {
    color: #F00
  }
</style>
<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">信息登记</h1>
</div>
<div class="panel panel-default">
  <div class="panel-body">
    <form name="form" class="form-horizontal">
      <div class="form-group">
        <h4 class="col-lg-3 control-label"><b class="redWord">* </b>信息名称：</h4>
        <h4 class="col-lg-6 input-group">
          <input type="text" class="form-control" ng-model="obj.info_title">
        </h4>
      </div>
     <div class="form-group">
        <h4 class="col-lg-3 control-label"><b class="redWord">* </b>所属分类：</h4>
        <h4 class="col-lg-6 input-group">
          <ui-select ng-model="obj.info_category_id" theme="bootstrap" ng-keyup="myKeyup($event)">
                <ui-select-match placeholder="请选择分类">
                    {{$select.selected.category_name}}
                </ui-select-match>
                <ui-select-choices repeat="item.id as item in category | filter: $select.search">
                    <span ng-bind-html="item.category_name | highlight: $select.search"></span>
                </ui-select-choices>
          </ui-select>
        </h4>
      </div>
      <div class="form-group">
        <h4 class="col-lg-3 control-label"><b class="redWord">* </b>信息内容：</h4>
        <h4 class="col-lg-6 input-group">
          <div class="ueditor" ng-model="obj.info_content"></div>
        </h4>
      </div>
      <div class="form-group">
        <h4 class="col-lg-3 control-label"><b class="redWord">* </b>信息作者：</h4>
        <h4 class="col-lg-6 input-group">
          <input type="text" class="form-control" ng-model="obj.info_author">
        </h4>
      </div>
      <!-- <div class="form-group">
        <h4 class="col-lg-3 control-label"><b class="redWord">* </b>自动发布时间：</h4>
        <h4 class="col-lg-6 input-group">
          <input class="form-control" datetimepicker ng-model="vm.data" options="options"/>
          <span class="input-group-addon">
            <span class="glyphicon glyphicon-calendar"></span>
          </span>
        </h4>
      </div>
      <div class="form-group">
        <h4 class="col-lg-3 control-label"><b class="redWord">* </b>发布停止时间：</h4>
        <h4 class="col-lg-6 input-group">
          <input class="form-control" datetimepicker ng-model="vm.data1" options="options"/>
          <span class="input-group-addon">
            <span class="glyphicon glyphicon-calendar"></span>
          </span>
        </h4>
      </div> -->
      <button class="col-lg-2 col-lg-offset-4 btn btn-success" type="button" 
        ng-click="save()">保 存</button>
    </form>

  </div>
</div>
